home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2000 November / cd joystick no120 novembre 2000 cd 1.iso / data / demos / gunlok / data1.cab / Program_Executable_Files / scripts / lamp.gsh < prev    next >
Text File  |  2000-08-22  |  1KB  |  50 lines

  1. // defines lamp light
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_lamp_GSH
  8. #define INCLUDED_lamp_GSH
  9.  
  10. ////////////////////////////////////////////////////////////////////////////////////
  11.  
  12. pgenerator Pgn_lamp
  13. {
  14.     type corona
  15.     life infinite
  16.     rate 1            // exactly the same as the decay rate hence the effect !
  17.     
  18.     // stream direction
  19.     x    0
  20.     y    0
  21.     z    0
  22.     
  23.     // particle colour
  24.     red   1.0
  25.     green 1.0
  26.     blue  1.0
  27.     alpha 1
  28. }
  29.  
  30. light Lit_lamp
  31. {
  32.     red             2
  33.     green           2
  34.     blue            2
  35.     specular red    2
  36.     specular green    2
  37.     specular blue    2
  38.     range           6
  39. }
  40.  
  41. role Rol_lamp : Rol_PlacedObject
  42. {
  43.     shape Pgn_lamp
  44.     light Lit_lamp
  45. }
  46.  
  47. ////////////////////////////////////////////////////////////////////////////////////
  48.  
  49. // end wrapper - for preventing multiple or recursive inclusions
  50. #endif // !INCLUDED_lamp_GSH